package com.zzl.admin.service.ws;

import com.zzl.admin.utils.RedisTool;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * description: websocket业务类
 * @author 朱正磊
 * @date 2022-02-07 17:52:32
 */
@Service
public class WsImpl {

    @Resource
    private RedisTool redisTool;

    public void sendMsg(String loginName, String msg) {
        redisTool.publish("TOPIC" + loginName, msg);
    }

}
